package com.rao.gmall.product.controller;

import com.rao.gmall.common.result.Result;
import com.rao.gmall.model.product.BaseSaleAttr;
import com.rao.gmall.product.service.BaseSaleAttrService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author nzmxfan
 * @create 2021-08-05-18:22
 */
@RestController
@RequestMapping("/admin/product")
public class BaseSaleAttrController {

    @Resource
    BaseSaleAttrService baseSaleAttrService;

    @GetMapping("/baseSaleAttrList")
    public Result<List<BaseSaleAttr>> baseSaleAttrList(){

        List<BaseSaleAttr> list = baseSaleAttrService.list();
        return Result.ok(list);
    }
}
